#include <retro.h>
#include "retro.library.h"

BOOL gEditorMode = FALSE;

BOOL Retro::Initialize(BOOL iEditorMode) 
{
  CoInitialize(NULL);

  gEditorMode = iEditorMode;

  return TRUE;
}

BOOL Retro::Uninitialize() 
{
  CoUninitialize();

  return TRUE;
}

BOOL Retro::IsEditorMode()
{
  return gEditorMode;
}

/*BOOL WINAPI DllMain(
  __in  HINSTANCE hinstDLL,
  __in  DWORD fdwReason,
  __in  LPVOID lpvReserved
)
{
  switch (fdwReason) 
  {
  case DLL_PROCESS_ATTACH:

    break;
  case DLL_PROCESS_DETACH:

    break;
  }
}*/